package orm;

import java.util.HashSet;
import java.util.Set;

/**
 * AbstractCourse entity provides the base persistence definition of the Course
 * entity. @author MyEclipse Persistence Tools
 */

public abstract class AbstractCourse implements java.io.Serializable {

	// Fields

	private long courseid;
	private String coursename;
	private Integer state;
	private Set teachers = new HashSet(0);
	private Set tests = new HashSet(0);
	private Set students = new HashSet(0);
	private Set knowledges = new HashSet(0);

	// Constructors

	/** default constructor */
	public AbstractCourse() {
	}

	/** minimal constructor */
	public AbstractCourse(String coursename, Integer state) {
		this.coursename = coursename;
		this.state = state;
	}

	/** full constructor */
	public AbstractCourse(String coursename, Integer state, Set teachers,
			Set tests, Set students, Set knowledges) {
		this.coursename = coursename;
		this.state = state;
		this.teachers = teachers;
		this.tests = tests;
		this.students = students;
		this.knowledges = knowledges;
	}

	// Property accessors

	public long getCourseid() {
		return this.courseid;
	}

	public void setCourseid(long courseid) {
		this.courseid = courseid;
	}

	public String getCoursename() {
		return this.coursename;
	}

	public void setCoursename(String coursename) {
		this.coursename = coursename;
	}

	public Integer getState() {
		return this.state;
	}

	public void setState(Integer state) {
		this.state = state;
	}

	public Set getTeachers() {
		return this.teachers;
	}

	public void setTeachers(Set teachers) {
		this.teachers = teachers;
	}

	public Set getTests() {
		return this.tests;
	}

	public void setTests(Set tests) {
		this.tests = tests;
	}

	public Set getStudents() {
		return this.students;
	}

	public void setStudents(Set students) {
		this.students = students;
	}

	public Set getKnowledges() {
		return this.knowledges;
	}

	public void setKnowledges(Set knowledges) {
		this.knowledges = knowledges;
	}

}